Skip to content

ReactiveViewHost class

Attributes: [DebuggerDisplay("{ViewModel}")]

Defined in

Namespace: ReactiveUI Assembly: ReactiveUI.dll Full name: ReactiveUI.ReactiveViewHost<T> Modifiers: public

Summary

View source

A class that implements the Android ViewHolder pattern with a ViewModel. Use it along with GetViewHost.

Applies to

net10.0-android36.0

Class hierarchy
classDiagram
class ReactiveViewHost~T~
class LayoutViewHost
LayoutViewHost <|-- ReactiveViewHost~T~
class IViewFor~TViewModel~ {
    <>
}
IViewFor~TViewModel~ <|.. ReactiveViewHost~T~
class IViewFor {
    <>
}
IViewFor <|.. ReactiveViewHost~T~
class IActivatableView {
    <>
}
IActivatableView <|.. ReactiveViewHost~T~
class IReactiveNotifyPropertyChanged~ReactiveViewHost~TViewModel~~ {
    <>
}
IReactiveNotifyPropertyChanged~ReactiveViewHost~TViewModel~~ <|.. ReactiveViewHost~T~
class IReactiveObject {
    <>
}
IReactiveObject <|.. ReactiveViewHost~T~
class INotifyPropertyChanged {
    <>
}
INotifyPropertyChanged <|.. ReactiveViewHost~T~
class INotifyPropertyChanging {
    <>
}
INotifyPropertyChanging <|.. ReactiveViewHost~T~
class IEnableLogger {
    <>
}
IEnableLogger <|.. ReactiveViewHost~T~

Inherits from: LayoutViewHost

Implements: IViewFor<TViewModel>, IViewFor, IActivatableView, IReactiveNotifyPropertyChanged>, IReactiveObject, INotifyPropertyChanged, INotifyPropertyChanging, IEnableLogger

Remarks

Every constructor is safe to trim and to compile ahead of time. Wire child controls in the bind callback, or derive from ReactiveViewHostUnsafe to wire them by reflection and fill AllPublicProperties.

Constructors

NameSummary
.ctorInitializes a new instance of the [ReactiveViewHost](# class.

Properties

NameSummary
ViewModelGets or sets the view model displayed by the view.
ChangingGets an observable that fires before a property is about to be changed. Note that this should not fire duplicate change notifications if a property is set to the same...
ChangedGets an Observable that fires after a property has changed. Note that this should not fire duplicate change notifications if a property is set to the same value multiple...
ThrownExceptionsGets an observable of exceptions thrown during reactive operations on this instance.
AllPublicPropertiesGets or sets the lazily-computed set of public properties used by legacy reflection-based wiring.

Methods

NameSummary
SuppressChangeNotificationsWhen this method is called, an object will not fire change notifications (neither traditional nor observable) until the return value is disposed.
AreChangeNotificationsEnabledGets a value indicating whether change notifications are enabled.

Events

NameSummary
PropertyChangedOccurs when a property value changes.
PropertyChangingOccurs when a property value is changing.
Inherited members